<?php

namespace App\Console;

use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
    /**
     * The Artisan commands provided by your application.
     * 应用提供的Artisan命令
     * @var array
     */
    protected $commands = [
        Commands\checkdatabase::class,
        Commands\Point::class,
    ];

    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule $schedule
     * @return void
     * 定义应用的命令调度
     */
    protected function schedule(Schedule $schedule)
    {
        $schedule->command('statistics:send update')->cron('59 23 * * *');
    }

}
